#include<bits/stdc++.h>

using namespace std;


using ll = long long;
#define endl '\n'
template<typename T=int>
inline T read() {
    T x;
    cin >> x;
    return x;
}
int main() {
    string today="2022-3-09 10:15:00";
    int y,m,d,hh,mm,ss;


    transform(today.begin(),
              today.end(),
              today.begin(),
              [](char ch){
                return ch=='-'||ch==':'?' ':ch;
              });

    cout<<today<<endl;
    istringstream iss(today);
    iss>>y>>m>>d>>hh>>mm>>ss;

    cout<<y<<" "<<m<<" "<<d<<" "<<hh<<" "<<mm<<" "<<ss;


    return 0;
}
